package com.ws.universal.tools.wsui.headle;

import android.view.View;

import com.ws.universal.tools.wsui.help.QMUISkinHelper;
import com.ws.universal.tools.wsui.widget.QMUISlider;

import org.jetbrains.annotations.NotNull;

public class QMUISkinRuleProgressColorHandler extends QMUISkinRuleColorHandler {
    @Override
    protected void handle(@NotNull View view, @NotNull String name, int color) {
        if (view instanceof QMUISlider) {
            ((QMUISlider) view).setBarProgressColor(color);
        } else {
            QMUISkinHelper.warnRuleNotSupport(view, name);
        }
    }
}
